/*
 * @Author: lijing
 * @e-mail: 1413979079@qq.com
 * @LastEditors: lijing
 * @Date: 2020-06-23 16:45:53
 * @LastEditTime: 2020-06-23 16:58:13
 * @FilePath: \client\src\model\Collect.ts
 * @Description:
 */
class Collecting {
  public userId: number;
  public imageId: number;
  public createdAt: number;
  public url: number;
  public desc: number;
  public label: number;
  public title: number;
  public static create(param: any): Collecting {
    const c = new Collecting();
    c.userId = param.user_id;
    c.imageId = param.image_id;
    c.createdAt = param.created_at;
    c.url = param.url;
    c.desc = param.desc;
    c.label = param.label;
    c.title = param.title;
    return c;
  }
}

export default Collecting;
